/*
 * @Author: David Ma
 * @FilePath: \huaxia-real-estate-web\src\api\client.ts
 * @LastEditors: David Ma
 * @Description: 该文件用于...
 * @Date: 2024-01-06 00:22:43
 */
import instance from "@/utils/request";
/**
 * 客户表
 *
 * Client
 */
export interface Client {
    cltNo?: string;
    cltEmail?: string;
    cltQq?: string;
    cltTel?: string;
    cltName?: string;
    cltUnit?: string;
}
// 查询所有客户
export function getAllClients() {
    return instance.get('/client');
}
// 模糊查询客户
export function getClientsByCondition(condition: Client) {
   return instance.post('/client/queryByCondition', condition );
}

// 根据客户id查客户信息
export function getClientByCltNo(cno: string) {
    return instance.get('/client/' + cno);
}
// 修改用户
export function modifyClientInfo(client: Client) {
    return instance.put('/client', client);
}
// 添加客户
export function addClient(client: Client) {
    return instance.post('/client', client);
}
// 创建项目

